Jo nu skal i se jeg har nogle problemer med min side. For da jeg skulle indsætte en PHP kode til en af siderne ændrer den altså hele designet
Det synes jeg er utrolig underligt.
<head>
<title>ingen titel</title>
<link rel="stylesheet" type="text/css" href="../style.css" />
</head>
<body background="../bg.JPG">
<table align="center" class="top" cellpadding="0" cellspacing="0">
<tr><td><img src="../banner.jpg" width="649" height="237"></td></tr>
</table>
<table align="center" class="midt" cellpadding="0" cellspacing="0" width="621">
<tr><td id="sidev" width="8">
<p align="left"> </td>
<td id="menu" valign="top" width="158"> <table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="120">
<tr align="left"><td height="12">
<a href="index.php?option=com_content&task=view&id=12&Itemid=41"><b>Navigator</b></a></td></tr>
<tr align="left"><td height="18">@ Nyheder</td></tr>
<tr align="left"><td height="18"><b>@ </b>Information</td></tr>
<tr align="left"><td height="18">@ Kontakt</td></tr>
</table>
<p><iframe name="I1" width="121" height="219">
Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></p>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="91">
<tr>
<td width="100%" height="37"><font color="#000000"><b>Generelt</b></font></td>
</tr>
<tr>
<td width="100%" height="18">@ Bestyrelsen</td>
</tr>
<tr>
<td width="100%" height="18">@ Statistikken</td>
</tr>
<tr>
<td width="100%" height="18">@ Partnere</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<td width="100%">@ FAQ</td>
</tr>
<tr>
<td width="100%">@ Link os</td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td id="fem" width="5"> </td>
<td id="main" valign="top" width="423">
<table class="contentpaneopen" width="415">
<tr>
<td class="contentheading" width="409">
<p align="right">Du er på Siden @ Kommenter </td>
</tr>
</table>
<?php
include("config.php");
if($_POST['send'] && $_POST['name'] != "navn" && isset($_POST['name'])){
$_POST['text'] = ereg_replace("<([^>]+)>", "", $_POST['text']);
mysql_query("INSERT INTO comment (newsid, text, name, mail) values ('$_POST[newsid]', '$_POST[text]',
'$_POST[name]', '$_POST[mail]')");
header("Location: show.guest.php?id=$_GET[id]");
}
?>
<?php
$query = mysql_query("SELECT id, title, text, name FROM news WHERE id='$_GET[id]'");
$row = mysql_fetch_array($query);
echo "<p align='left'><b><font face='Trebuchet MS' style='font-size: 9pt'> $row[title]</b></p>";
echo "<p align='left'><font face='Trebuchet MS' style='font-size: 9pt'>";
echo nl2br($row['text']);
echo "</font><p align='left'><font face='Trebuchet MS' style='font-size: 9pt'>Skrevet af: [$row[name]]</font></p>";
echo "<p align='left'><a href='index.php'><-- tilbage </a></p>";
?>
<hr color="#000000" size="1" noshade style="border: 1px dashed #C0C0C0"><font size='1' face='Verdana'><p
align="left"><b>Kommentarer</b></p>
<?php
$query = mysql_query("SELECT name, text, mail FROM comment WHERE newsid='$_GET[id]' ORDER BY id DESC");
while ($rows = mysql_fetch_array($query)) {
echo "<font face='Trebuchet MS' style='font-size: 9pt'><p>".nl2br($rows['text'])."<br><br>";
echo "</b>Af Gæst: <a href='row[mail]'>$rows[name]</a>">mailtorow[mail]'>$rows[name]</a>";
}
?>
<hr color="#000000" size="1" noshade style="border: 1px dashed #C0C0C0" align="left">
<form action="<?php echo $_SERVER['PHP_SELF']."?id=$_GET[id]"; ?>" method="post">
<p align="center">
<input type="text" name="name" size="38" value="navn" style="font-family: Trebuchet MS; font-size: 9pt"><br>
<input type="text" name="mail" size="38" value="e-mail" style="font-family: Trebuchet MS; font-size: 9pt"></p>
<p align="center">
<textarea rows="2" name="text" cols="36" style="font-family: Trebuchet MS; font-size: 9pt">kommentar</textarea></p>
<p align="center">
<input type="submit" value="Send" name="send" style="font-family: Tr; font-size: 9pt"></p>
<p align="center"><font face="Trebuchet MS" style="font-size: 9pt">Opret dig en
bruger og få adgang til de mange fede funktioner! Klik her!</font></p>
<input type="hidden" name="newsid" value="<?php echo $row['id']; ?>">
</form>
</table>
</center>
</body>
</html>
</body>
</html></td>
<td id="h">
<img src="../bottom.jpg" width="636" height="45"><table class="bottom" align="center" cellpadding="0" cellspacing="0">
<tr><td>
</td></tr>
</table>
</body>
</html><!-- 1107894288 -->
Da jeg indsatte php koden ændrede den hele designet.. Problemet ligger bare i nu at jeg ikke kan finde ud af hvad problemet er.
Hvis du kan løse problemet vil jeg blive enormt glad! Det normale design kan ses på www.cybenets.dk og problemt:
http://www.cybernets.dk/news/show.guest.php?id=7Hjælp venligst.
Mvh. Rasmus W. Jensen